package com.jqsoft.launcher.android.exception;

import static com.jqsoft.launcher.util.Log.e;

public class BphsException extends Exception {
	
	private static final long serialVersionUID = 7633894647653066893L;
	
	private int statusCode = -1;
	
	private String tag = this.getClass().getName();

    public BphsException(String msg) {
        super(msg);
        e(tag, msg);
    }

	public BphsException(Exception cause) {
        super(cause);
        e(tag, cause.getMessage());
    }

    public BphsException(String msg, int statusCode) {
        super(msg);
        this.statusCode = statusCode;
        e(tag, msg);
    }

    public BphsException(String msg, Exception cause) {
        super(msg, cause);
        e(tag, msg);
    }

    public BphsException(String msg, Exception cause, int statusCode) {
        super(msg, cause);
        this.statusCode = statusCode;
        e(tag, msg);
    }

    public int getStatusCode() {
        return this.statusCode;
    }
}
